//
//  KeyboardViewController.m
//  基本框架
//
//  Created by runone02 on 2018/8/22.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "KeyboardViewController.h"
#import "ZZZKeyboard.h"
@interface KeyboardViewController ()
/** 键盘*/
@property (nonatomic, strong) ZZZKeyboard *keyboard;
@end

@implementation KeyboardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNavView];
    [self loadKeyBoard];
   
}

- (void)setupNavView{
    [self.navView.leftButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.navView.centerButton setTitle:@"自定义车牌输入键盘" forState:UIControlStateNormal];
}

- (void)loadKeyBoard{
     self.view.backgroundColor = [UIColor whiteColor];
    self.keyboard = [[ZZZKeyboard alloc]initWithFrame:CGRectMake(0, 0, 375, 240)];
    
    UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(30, kTopBarHeight + 30, SCREEN_WIDTH/2, 30)];
    textField.placeholder = @"请输入xxxxx";
    textField.layer.borderWidth = 1.0f;
    textField.layer.borderColor = [UIColor lightGrayColor].CGColor;
    textField.layer.cornerRadius = W_RATIO(10);
    textField.clipsToBounds = YES;
    textField.inputView = self.keyboard;
    [self.view addSubview:textField];
}


@end
